package com.bestescortbedsystem.service;

import com.bestescortbedsystem.entity.SesHospitalinfo;
import com.bestescortbedsystem.entity.SesHospitalinfoDepartment;
import com.bestescortbedsystem.entity.SesUserIdentity;

import java.util.Map;

/**
 * ClassName: DepartmentService
 * Package: com.bestescortbedsystem.service
 *
 * @author: guanzepeng
 * @Date: 2021/3/1 19:52 星期一
 * @Description: 医院科室业务层接口
 */
public interface DepartmentService {

	/**
	 * 查询医院所对应的科室信息
	 * @param sesHospitalinfoDepartment 传入对象
	 * @param pageNum 分页
	 * @param pageSize 分页
	 * @return 返回Map
	 */
	Map<String, Object> findBydepartment(SesHospitalinfoDepartment sesHospitalinfoDepartment, Integer pageNum, Integer pageSize);

	/**
	 * 根据医院科室主键ID删除一条科室信息
	 * @param departmentid 传入科室ID
	 * @return 返回Boolean
	 */
	Boolean deleteDepartment(Long departmentid);

	/**
	 * 查询对接人的详细信息
	 * @param useridentityId 传入用户身份表ID
	 * @return 返回SesUserIdentity
	 */
	SesUserIdentity findByUserIdentity(Long useridentityId);

	/**
	 * 根据传入的数据新增一个科室
	 * @param sesHospitalinfoDepartment 传入对象
	 * @return 返回Boolean
	 */
	Boolean insertDepartment(SesHospitalinfoDepartment sesHospitalinfoDepartment);
}
